package com.wj.rpsm.user.mapper;

import com.wj.rpsm.user.pojo.Building;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author WeiJin
 * @version 1.0
 */
@Repository
public interface BuildingMapper {

    /**
     * 根据楼层所属id获取楼栋名
     * @param id
     * @return
     */
    @Select("select building_name from building where building_id = #{id}")
    String getByBelongBuildingId(Integer id);
}
